package ${basePackage}.model;

import com.hfdg.prototype.entity.BaseEntity;
import java.io.Serializable;

/**
 * 公司：${company}
 * 作者：${author}
 * 日期：${(currentDate?string("yyyy年MM月dd日"))!}
 * 说明：数据库表[${tableName}]对应实体类
 */
public class ${className} extends BaseEntity implements Serializable {

	private static final long serialVersionUID = 1L;
<#list fieldModelList as fieldModel>
     /**
        *字段说明：${fieldModel.fieldComment!''}
    */
    private ${fieldModel.fieldType} ${fieldModel.fieldName};
</#list>

<#-- 生成get和set方法 -->
<#list fieldModelList as fieldModel>
    public void set${fieldModel.fieldName?cap_first}(${fieldModel.fieldType} ${fieldModel.fieldName}){
        this.${fieldModel.fieldName} = ${fieldModel.fieldName};
    }

    public ${fieldModel.fieldType} get${fieldModel.fieldName?cap_first}(){
        return this.${fieldModel.fieldName};
    }

</#list>
    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}